﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="Contact.aspx.cs" Inherits="Contact" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
<script>
    $(document).ready(function () {
        $('#btnSendContact').click(function () {
            var emailfeedback = '<%=ConfigurationManager.AppSettings["emailfeedback"].ToString() %>';
            var name = $('#txtName').val();
            var email = $('#txtEmail').val();
            var phone = $('#txtPhone').val();
            var message = $('#txtMessage').val();
            $.ajax({
                type: "POST",
                url: "PIMService.asmx/SendMailContact",
                data: "{'message':'" + message + "','name':'" + name + "','email':'" + email + "','phone':'" + phone + "','emailfeedback':'" + emailfeedback + "'}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (response) {
                    result = response.d;
                    alert('Email is sent!');
                },
                error: function (msg) {
                }
            });
        });
    });
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <div id="contentarea">
        <div id="content" class="clearfix">
            <div class="clearfix">
                <%--<div class="alpha04 clearfix">
                    <p class="title04">
                        FIND US</p>
                    <div class="map clearfix">
                        <iframe width="390" height="350" frameborder="0" scrolling="no" marginheight="0"
                            marginwidth="0" src="https://maps.google.com/maps?q=37.33084,-121.893978&amp;num=1&amp;ie=UTF8&amp;t=m&amp;z=14&amp;output=embed">
                        </iframe>
                    </div>
                    <div class="clearfix clear">
                        <p>
                            345 Park Ave. San Jose, CA 95110</p>
                        <p>
                            Freephone: 01 800 559 6580<br />
                            Telephone: 01 959 603 6035<br />
                            FAX: 01 504 889 9898<br />
                            E-mail: mail@step49.com</p>
                    </div>
                </div>--%>
                <div style="text-align:justify">
                
                <div class="beta04 clearfix" style="width:95%">
                    <p class="title04">
                        GET IN TOUCH</p>
                    <form action="" method="get">
                    <div class="mar_b15 clearfix">
                        <table border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <th>
                                    Name
                                </th>
                                <td>
                                    <input name="Name" type="text" id="txtName" size="100" />
                                </td>
                            </tr>
                            <tr>
                                <th>
                                    Email
                                </th>
                                <td>
                                    <input name="Email" type="text" id="txtEmail" size="100" />
                                </td>
                            </tr>
                            <tr>
                                <th>
                                    Phone
                                </th>
                                <td>
                                    <input name="Phone" type="text" id="txtPhone" size="100" />
                                </td>
                            </tr>
                            <tr>
                                <th>
                                    Message
                                </th>
                                <td>
                                    <textarea name="Message" id="txtMessage" cols="90" rows="10"></textarea>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div class="img_c">
                        <img src="images/btn_submit.jpg" id="btnSendContact" alt="Submit" width="58" height="30" /></div>
                    </form>
                </div>
                </div>
                
            </div>
        </div>
    </div>
</asp:Content>
